package org.jetlinks.pro.rule.engine.executor;

/**
 * 设备选择器构造器,根据表达式来构造一个选择器.
 *
 * @author zhouhao
 * @see DeviceSelector
 * @see org.jetlinks.pro.rule.engine.executor.ReactorQLDeviceSelectorBuilder
 * @since 1.5
 */
public interface DeviceSelectorBuilder {

    /**
     * 根据表达式构造选择器,表达式支持由不同Builder来实现.
     *
     * @param expression 表达式
     * @return 选择器
     */
    DeviceSelector createSelector(String expression);

}
